import request from '@/utils/request'

// 查询内存日志列表
export function listMemLog(query) {
  return request({
    url: '/devops/memLog/list',
    method: 'get',
    params: query
  })
}

// 查询内存日志图表
export function getMemLogGraph(query) {
  return request({
    url: '/devops/memLog/graph' ,
    method: 'get',
    params: query
  })
}

// 查询内存日志详细
export function getMemLog(id) {
  return request({
    url: '/devops/memLog/' + id,
    method: 'get'
  })
}

// 新增内存日志
export function addMemLog(data) {
  return request({
    url: '/devops/memLog',
    method: 'post',
    data: data
  })
}

// 修改内存日志
export function updateMemLog(data) {
  return request({
    url: '/devops/memLog',
    method: 'put',
    data: data
  })
}

// 删除内存日志
export function delMemLog(id) {
  return request({
    url: '/devops/memLog/' + id,
    method: 'delete'
  })
}

// 导出内存日志
export function exportMemLog(query) {
  return request({
    url: '/devops/memLog/export',
    method: 'get',
    params: query
  })
}
